<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>操作员管理</title>

    <jsp:include page="/static/common/easyui_header.jsp"></jsp:include>

    <script type="text/javascript" src="/static/js/views/operator.js"></script>

</head>
<body>

<body>
<%--工具条--%>
<div id="operator_datagrid_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="add">添加</a>

    <a class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="edit">编辑</a>

    <%--<a class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="remove">删除</a>--%>

    <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reload">刷新</a>
</div>
<!--表单-->
<table id="operator_datagrid" ></table>

<div id="operator_dialog" style="padding: 10px" class="easyui-dialog" data-options="buttons:'#operator_dialog_buttons'">
    <form id="operator_add_form" method="post">
        <input type="hidden" name="id" id="operator_id" value="">
        <table>
            <tr>
                <td>账&emsp;&emsp;号</td>
                <td><input name="username" class="easyui-textbox"></td>
            </tr>
            <tr id="pwd">
                <td>密&emsp;&emsp;码</td>
                <td>
                    <input name="password" class="easyui-passwordbox">
                </td>
            </tr>
            <tr>
                <td>姓&emsp;&emsp;名</td>
                <td><input name="employee.id" class="easyui-combobox" id="employee_operator"
                          data-options="valueField:'id',textField:'name',url:'/employee/listAll'"></td>
            </tr>
            <tr>
                <td>职&emsp;&emsp;位</td>
                <td><input name="role.id" class="easyui-combobox"
                           data-options="valueField:'id',textField:'name',url:'/role/listAll'"></td>
            </tr>
            <tr>
                <td>状&emsp;&emsp;态</td>
                <td><select name="state" class="easyui-combobox" style="width: 160px">
                    <option value=""></option>
                    <option value="0">在职</option>
                    <option value="1">离职</option>
                </select></td>
            </tr>
            <tr>
                <td>添加时间</td>
                <td><input name="inputTime" class="easyui-datebox"></td>
            </tr>
            <tr>
                <td>授&emsp;&emsp;权</td>
                <td><input id="operator_combobox" class="easyui-combobox"  multiple="true"
                           data-options="valueField:'id',textField:'name',url:'/role/listAll'" />
                </td>
            </tr>
            <tr>
                <td>超&emsp;&emsp;管</td>
                <td><select name="admin" class="easyui-combobox" style="width: 160px">
                    <option value=""></option>
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
                </td>
            </tr>
        </table>
    </form>
    <div id="operator_dialog_buttons">
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="save">确定</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
    </div>
</div>
</body>
</body>
</html>